package com.game.thrones.util;

import java.io.IOException;

/**
 * OSS配置类  

 * @Description:TODO

 * @author:WangYueQiang

 * @time:2017年4月10日 下午3:46:25
 */
public class OSSConfig{  
	private  String endpoint;       //连接区域地址内
	private  String endpointInternal;       //连接区域地址外
    private  String accessEndpoint;       //映射域名
    private  String accessKeyId;    //连接keyId 
    private  String accessKeySecret;    //连接秘钥  
    private  String bucketName;     //需要存储的bucketName  
    private  String picLocation;    //图片保存路径  
    public OSSConfig() {  
        try {  
            this.endpoint = SystemConfig.getConfigResource("endpoint");  
            this.endpointInternal = SystemConfig.getConfigResource("endpoint-internal");
            this.accessEndpoint = SystemConfig.getConfigResource("accessEndpoint"); 
            this.bucketName = SystemConfig.getConfigResource("bucketName");  
            this.picLocation = SystemConfig.getConfigResource("picLocation");  
            this.accessKeyId = SystemConfig.getConfigResource("accessKeyId");  
            this.accessKeySecret = SystemConfig.getConfigResource("accessKeySecret");  
        } catch (IOException e) {  
            e.printStackTrace();  
        }  
    } 
    public String getEndpoint() {  
        return endpoint;  
    }  
    public void setEndpoint(String endpoint) {  
        this.endpoint = endpoint;  
    }  
    public String getAccessKeyId() {  
        return accessKeyId;  
    }  
    public void setAccessKeyId(String accessKeyId) {  
        this.accessKeyId = accessKeyId;  
    }  
    public String getAccessKeySecret() {  
        return accessKeySecret;  
    }  
    public void setAccessKeySecret(String accessKeySecret) {  
        this.accessKeySecret = accessKeySecret;  
    }  
    public String getBucketName() {  
        return bucketName;  
    }  
    public void setBucketName(String bucketName) {  
        this.bucketName = bucketName;  
    }  
    public String getPicLocation() {  
        return picLocation;  
    }  
    public void setPicLocation(String picLocation) {  
        this.picLocation = picLocation;  
    }
	public String getAccessEndpoint() {
		return accessEndpoint;
	}
	public void setAccessEndpoint(String accessEndpoint) {
		this.accessEndpoint = accessEndpoint;
	}
	public String getEndpointInternal() {
		return endpointInternal;
	}
	public void setEndpointInternal(String endpointInternal) {
		this.endpointInternal = endpointInternal;
	} 
    
}  